﻿$(function () {
    $('.pretty').prettySelect();

    $('input[data-completesource]').each(function () {
        var $input = $(this);
        var $sourceInput = $('#' + $input.attr('data-completesource'));
        $input.autocomplete({
            source: $sourceInput.val().split(';'),
            delay: 50
        });
    });
    $("#dialog-confirm-remove").dialog({
        resizable: false,
        height: 140,
        modal: true,
        buttons: {
            "Usuń": function () {
                $(this).dialog("close");
            },
            Cancel: function () {
                $(this).dialog("close");
            }
        }
    });
});